#include <REGX52.H>
#include "LCD1602.h"
#include "Delay.h"
#include "MatrixKey.h"


void main()
{
	unsigned char num;
	LCD_Init();
	LCD_ShowString(1,1,"MatrixKey");
	while(1)
	{
		num = MatrixKey();
		if(num)//若不加判断，会一直显示默认状态的0
		{
			LCD_ShowNum(2,1,num,2);
		}
	}
}
